package com.xo.common.pojo.dto;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

@Schema(description = "分类创建参数")
@Data
public class CreateCategoryDto {

    @Schema(description = "分类名称", requiredMode = Schema.RequiredMode.REQUIRED)
    private String categoryName;

    @Schema(description = "分类级别：1 一级，2 二级，3 三级",  requiredMode = Schema.RequiredMode.REQUIRED)
    private Integer categoryLevel;

    @Schema(description = "父节点ID",  requiredMode = Schema.RequiredMode.NOT_REQUIRED)
    private Integer categoryParentId;

    @Schema(description = "排序，值越大越靠前",  requiredMode = Schema.RequiredMode.REQUIRED)
    private Integer sortOrder;

}
